/** 审核* */
$(function() {
	var i = 1, status = 0;
	var title = document.title;
	var audit = function() {
		$.getJSON(setting.app + '/Robot/Tip/audit', function(data) {
			status = data.status;
		});
	};
	var auditTitle = function() {
		if (status) {
			if (i == 1) {
				document.title = "[有任务需要审核]" + title + i;
			} else {
				document.title = "[◇◇◇◇◇◇◇]" + title + i;
			}
			i = i == 1 ? 2 : 1;
		}
	};
	$('body').everyTime('5s', 'A', audit);
	$('body').everyTime('1s', 'B', auditTitle);
});